/**
 * 第三方库
 */
import React from "react";
import ReactDOM from "react-dom";
import { ConnectedRouter } from "connected-react-router";
import { Provider } from "react-redux";

/**
 * 自定义脚本
 */
import { routesConfig } from "@routes/routes-config";
import { renderRoutes } from "@routes/route-loader";
import store from "@store/index";
import history from "@store/history";

/*
 * 样式
 */
import "@src/styles/common.css";

ReactDOM.render(
  <Provider store={store}>
    <ConnectedRouter history={history}>{renderRoutes(routesConfig)}</ConnectedRouter>
  </Provider>,
  document.getElementById("root")
);
